<%@ page isELIgnored="false"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="com.paypal.adaptive.api.responses.PayResponse" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Simple Pay</title>
</head>
<body>
	<% 
		PayResponse payResp = (PayResponse) request.getAttribute("payResponse");
		String msg = "";
		if (payResp == null) {
			msg = "Payment failed";
		} else {
			msg = "Payment succeed. Paykey = " + payResp.getPayKey().toString();
		}
	%>
	<p><%= msg %></p>
</body>
</html>